﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TaskIDEntry.aspx.cs" Inherits="com.vs.RF.Web.task.TaskIDEntry" MasterPageFile="~/RF.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">
    <script type="text/javascript">
        function valForm() {
            if (form1.tbTaskID.value == "") {
                alert("请输入任务号"); 
                form1.tbTaskID.focus();
                return false;
            }            
            
            return true;
        }

        var iNumOfSubmit = 0;
        function btnOK_Click() {
            if (iNumOfSubmit > 0)
                return;
            if (valForm()) {
                iNumOfSubmit++;
                form1.submit();
            }
        }

        function btnCancel_Click() {
            form1.action = "TaskOptions.aspx";
            form1.submit();
        }

        function on_Load() {
            form1.tbTaskID.focus();
        }

        function on_KeyDown() {
            if (event.keyCode == "13")
                btnOK_Click();
        }
    </script>
    
    <%= stErrorMessage %>
    <form id="form1" action="TaskIDEntryHandling.aspx" method="post" onkeydown="on_KeyDown()">
    <div>
        <table>
            <tr>
                <td>任务号：</td>
                <td><input type="text" name="tbTaskID" class="greyRed" /></td>
            </tr>
        </table>    
    </div>  
    <div id="footer">  
        <input type="button" id="btnOK" value="确定" onclick="btnOK_Click()" class="greyRed"/>
        <input type="button" id="btnCancel" value="取消" onclick="btnCancel_Click()" class="greyRed" />
    </div>
    </form>
</asp:Content>